package app.vendorportal.api.marketplace.data.response;

import app.vendorportal.api.marketplace.data.QueryProductResponseItem;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * @author vince
 */
@XmlRootElement(name = "query-product-response")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryProductBySkuResponse {

    @XmlElementWrapper(name = "product-list")
    @XmlElement(name = "product")
    private final List<QueryProductResponseItem> queryProductResponseItems = new ArrayList<>();

    public List<QueryProductResponseItem> getQueryProductResponseItems() {
        return queryProductResponseItems;
    }
}
